package view.configuration;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;
import javax.faces.event.ActionEvent;

@RequestScoped
@ManagedBean
public class ViewDispatcher implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String url="maint/countr/fCountrMain";
	
	private String dlg1="maint/countr/fCountrEditGrid";
	
	public void redireccion1(){
		url ="welcome.xhtml";
		System.out.println("redireccion1");
	}
	
	public void redireccion2(){
		url ="maint/countr/fCountrMain";
		System.out.println("redireccion2");
	}
	
	public void redireccion1(ActionEvent e){
		url ="maint/person/fPersonMain";
		System.out.println("redireccion1 event");
	}
	
	public void redireccion2(ActionEvent e){
		url ="maint/countr/fCountrMain";
		System.out.println("redireccion2 event");
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDlg1() {
		return dlg1;
	}

	public void setDlg1(String dlg1) {
		this.dlg1 = dlg1;
	}
	
	
	
}
